home *** CD-ROM | disk | FTP | other *** search
- ALL(3I) Last changed: 1-6-98
-
-
- NNAAMMEE
- AALLLL - Determines whether all values are true
-
- SSYYNNOOPPSSIISS
- AALLLL (([MMAASSKK==]_m_a_s_k [,,[DDIIMM==]_d_i_m]))
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- UNICOS, UNICOS/mk, and IRIX systems
-
- SSTTAANNDDAARRDDSS
- Fortran 90
-
- DDEESSCCRRIIPPTTIIOONN
- The AALLLL intrinsic function determines whether all values are true in
- _m_a_s_k along dimension _d_i_m. It accepts the following arguments:
-
- _m_a_s_k Must be of type logical. It must not be a scalar.
-
- _d_i_m Must be a scalar. It must be an integer value in the range
- 1 <= _d_i_m <= _n, where _n is the rank of _m_a_s_k. The
- corresponding actual argument must not be an optional dummy
- argument.
-
- AALLLL is a transformational function. The name of this intrinsic cannot
- be passed as an argument.
-
- RREETTUURRNN VVAALLUUEESS
- The result is type logical. It is a scalar result if _d_i_m is absent or
- if _m_a_s_k has rank one. Otherwise, the result is an array of rank _n-1
- and of shape (_d , _d , ..., _d , _d , ..., _d ),
- 1 2 _d_i_m-1 _d_i_m+1 _n
- where (_d , _d , ..., _d )
- 1 2 _n
- is the shape of _m_a_s_k.
-
- The result of AALLLL((_m_a_s_k)) has the value TTRRUUEE if all the elements of _m_a_s_k
- are TTRRUUEE or if _m_a_s_k is a zero-sized array. The result has the value
- FFAALLSSEE if any element of _m_a_s_k is FFAALLSSEE.
-
- If _m_a_s_k has rank one, AALLLL((_m_a_s_k,, _d_i_m)) has a value equal to that of
- AALLLL((_m_a_s_k)). Otherwise, the value of
- element (_s , _s , ..., _s , _s , ..., _s )
- 1 2 _d_i_m-1 _d_i_m+1 _n
- of AALLLL((_m_a_s_k,, _d_i_m)) is equal to
- AALLLL((_m_a_s_k (_s , _s , ..., _s , : , _s , ..., _s )).
- 1 2 _d_i_m-1 _d_i_m+1 _n
-
- EEXXAAMMPPLLEESS
- Example 1:
-
- * AALLLL (( ((// ..TTRRUUEE..,, ..FFAALLSSEE..,, ..TTRRUUEE.. //)) )) is false.
-
- * AALLLL((_a_r_r_a_y)) is ..TTRRUUEE.. when _a_r_r_a_y is a zero-sized array.
-
- Example 2: Assume that BB and CC are arrays as follows:
-
- BB is the following array:
-
- | 1 3 5 |
-
- | 2 4 6 |
-
- CC is the following array:
-
- | 0 3 5 |
-
- | 7 4 8 |
-
- * AALLLL (( BB ..NNEE.. CC )) is ..FFAALLSSEE..
-
- * AALLLL (( BB ..NNEE.. CC,, DDIIMM==11)) is [[..TTRRUUEE..,, ..FFAALLSSEE..,, ..FFAALLSSEE..]]
-
- * AALLLL (( BB ..NNEE.. CC,, DDIIMM==22)) is [[..FFAALLSSEE..,, ..FFAALLSSEE..]]
-
- * AALLLL (( BB ..NNEE.. 11 )) is ..FFAALLSSEE.. because there is one false element in
- the mask.
-
- Example 3: Assume that array NN is as follows:
-
- | 0 1 2 3 |
-
- | 4 5 6 7 |
-
- | 8 9 0 1 |
-
- In an array section reference, you can expect the following results:
-
- * AALLLL((((NN((22::33,,22::44))..NNEE..00)))) is ..FFAALLSSEE..
-
- * AALLLL((((NN((22::33,,22::44))..NNEE..00)),,DDIIMM==11)) is [[..TTRRUUEE..,, ..FFAALLSSEE..,, ..TTRRUUEE..]]
-
- * AALLLL((((NN((22::33,,22::44))..NNEE..00)),,DDIIMM==22)) is [[..TTRRUUEE..,, ..FFAALLSSEE..]]
-
- SSEEEE AALLSSOO
- _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication SR-2138, for the
- printed version of this man page.
-
-